package com.lfc.flowable.service;

import com.lfc.flowable.domian.TableDataInfo;
import com.lfc.flowable.domian.dto.TaskInfo;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;


@Service
public interface FlowableService {

    TableDataInfo myList(TaskInfo param);

    void genProcessDiagram(HttpServletResponse httpServletResponse, String processId) throws IOException;

    List<TaskInfo> history(String taskId);

    List<TaskInfo> historyByProcessInstanceId(String processInstanceId);

    TableDataInfo listHistoryProcess(String businessKey,
                                     String name,
                                     Integer pageSize, Integer pageNum);
}
